package cn.sjx.auth.service.impl;

import cn.sjx.auth.domain.Menu;
import cn.sjx.auth.mapper.MenuMapper;
import cn.sjx.auth.service.MenuService;
import cn.sjx.basic.service.impl.BasicServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MenuServiceImpl extends BasicServiceImpl<Menu>implements MenuService {
    @Autowired
    MenuMapper menuMapper;

    @Override
    public List<Menu> tree(Long loginUserId) {

        return menuMapper.tree(loginUserId);

    }

    @Override
    public List<Menu> getTree() {

        return menuMapper.getTree();

    }

}
